import request from '@/utils/request'

/**
 * 查询${remark}
 * @param query
 * @returns {*}
 */
export function list${modelName?cap_first}(query) {
    return request({
        url: '/${modelName}/list',
        method: 'post',
        data: query,
    })
}

/**
 * 查询${remark}
 * @param id
 * @returns {*}
 */
export function get${modelName?cap_first}(id) {
    return request({
        url: '/${modelName}/info/' + id,
        method: 'get'
    })
}

/**
 * 新增${remark}
 * @param data
 * @returns {*}
 */
export function add${modelName?cap_first}(data) {
    return request({
        url: '/${modelName}/save',
        method: 'post',
        data: data
    })
}

/**
 * 修改${remark}
 * @param data
 * @returns {*}
 */
export function update${modelName?cap_first}(data) {
    return request({
        url: '/${modelName}/edit',
        method: 'put',
        data: data
    })
}

/**
 * 删除${remark}
 * @param id
 * @returns {*}
 */
export function del${modelName?cap_first}(id) {
    return request({
        url: '/${modelName}/delete/' + id,
        method: 'delete'
    })
}
